#ifndef WIDGET_BOOKLIST_H
#define WIDGET_BOOKLIST_H

#include <QtGui/QWidget>
#include <QtGui/QTreeWidget>

namespace Jonathan
{

   class Widget_BookList : public QWidget
   {
       Q_OBJECT
   public:
       explicit Widget_BookList  (QWidget *parent = 0);

   signals:

   public slots:
      void LoadItemData          (QTreeWidgetItem*);
      void TreeItemDoubleClicked (QTreeWidgetItem*);

   private:
      QTreeWidget*               m_BookTree;
      QTreeWidget*               m_ReferenceTree;
      void LoadBooks             ();
      QWidget* CreateTreePanel   (QTreeWidget* tree, QWidget* parent, QString text);

   };

}

#endif // WIDGET_BOOKLIST_H
